package com.coocaa.ops.admin.v1.auth.sys.service.impl;

import com.coocaa.ops.admin.v1.auth.sys.biz.ISysLogLoginBiz;
import com.coocaa.ops.admin.v1.auth.sys.model.query.SysLogLoginModel;
import com.coocaa.ops.admin.v1.auth.sys.service.ISysLogLoginService;
import com.coocaa.ops.common.core.base.model.PageResultModel;
import com.coocaa.ops.common.core.base.util.PageQueryUtil;
import com.coocaa.ops.common.core.biz.auth.entity.SysLogLoginEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author bijiahao
 * @date : 2019/3/18.
 * @description
 */
@Service
public class SysLogLoginServiceImpl implements ISysLogLoginService {
    @Autowired
    private ISysLogLoginBiz sysLogLoginBiz;

    /**
     * 获取分页数据
     *
     * @param model
     * @return
     */
    @Override
    public PageResultModel<SysLogLoginEntity> getPageResult(SysLogLoginModel model) {
        Map<String, Object> params = PageQueryUtil.getFilterMap(model);
        PageResultModel<SysLogLoginEntity> pageResult = sysLogLoginBiz.getCommonPageList(params, false);
        return pageResult;
    }
}
